feddca0fdde9c4a827df38b9d05114b5db444656,cdap-data-fabric/src/main/java/co/cask/cdap/data2/datafabric/dataset/type/DatasetTypeManager.java,DatasetTypeManager,deployDefaultModules,#,404
Before Change
// perfectly fine: we need to add default modules only the very first time service is started
LOG.info("Not adding " + module.getKey() + " module: it already exists");
} catch (Throwable th) {
LOG.error("Failed to add {} module. Aborting.", module.getKey(), th);
throw Throwables.propagate(th);
}
}
}
After Change
// perfectly fine: we need to add default modules only the very first time service is started
LOG.info("Not adding {} module: it already exists", module.getKey());
} catch (Throwable th) {
String msg = String.format("Failed to add %s module. Aborting.", module.getKey());
throw new RuntimeException(msg, th);
}
}
}